<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWebPermissionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('web_permissions', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('order_id')->unique();        // 订单ID
            $table->text('ftp_mysql');                    // FTP+MYSQL
            $table->string('super_user');                 // 超级用户
            $table->string('admin_user');                 // 管理员
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('web_permissions');
    }
}
